package com.yungu.swift.report.service.impl;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.base.model.admin.AdminReportParam;
import com.yungu.swift.report.base.service.impl.BaseServiceImpl;
import com.yungu.swift.report.dao.ReportOrderFeeDayDao;
import com.yungu.swift.report.entity.ReportOrderFeeDay;
import com.yungu.swift.report.service.OrderFeeDayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderFeeDayServiceImpl extends BaseServiceImpl<ReportOrderFeeDay> implements OrderFeeDayService {

    @Autowired
    private ReportOrderFeeDayDao orderFeeDayDao;

    @Override
    public IMapper<ReportOrderFeeDay> getMapper() {
        return orderFeeDayDao;
    }

    @Override
    public ResponseData<List<ReportOrderFeeDay>> queryIndex(AdminReportParam reportParam) {
        return ResponseData.buildSuccessResponse(orderFeeDayDao.queryIndex(reportParam));
    }

    @Override
    public ResponseData<ReportOrderFeeDay> getTotalInfo(AdminReportParam reportParam) {
        return ResponseData.buildSuccessResponse(orderFeeDayDao.getTotalInfo(reportParam));
    }
}
